﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MineDiscover.Utils
{
    public class Helper
    {
        public static readonly int[] ArrayIndexArround = new []{ -1, 1, -1, 0, -1, -1, 0, -1, 1, -1, 1, 0, 1, 1, 0, 1, 0, 0 };

        public static bool ValidateOverBoundary(int x, int y, int rows, int columns)
        {
            if (x >= 0 && x < columns)
            {
                if (y >= 0 && y < rows)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
